var express = require('express');

// 创建当前级路由
var mainRouter = express.Router();

// 引入下一级路由
var getRouter = require('./get/router')
var submitRouter = require('./submit/router')
var pageRouter = require('./page/router')

// 路由到下一级
mainRouter.use('/get', getRouter)
mainRouter.use('/submit', submitRouter)
mainRouter.use('/', pageRouter)

// 暴露当前级路由
module.exports = mainRouter